package com.turman.builibrary.refresh;

public interface BRefresh {
    /**
    * 刷新时是否禁止滚动
    * @author buobao
    * @since 2024/3/13 13:23
    */
    void setDisableRefreshScroll(boolean disable);

    /**
    * 刷新结束
    * @author buobao
    * @since 2024/3/13 13:24
    */
    void refreshFinished();

    /**
    * 设置刷新监听
    * @author buobao
    * @since 2024/3/13 13:24
    */
    void setRefreshListener(BRefreshListener listener);

    /**
     * 设置刷新视图
     */
     void setRefreshOverview(BOverview overview);

    /**
     * 刷新监听
     */
    interface BRefreshListener {
        void onRefresh();
        boolean enableRefresh();
    }
}
